package com.media.feignclient;

import com.base.model.R;
import com.media.model.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: 小何
 * @Description: TODO
 * @DateTime: 2023/10/23 16:55
 **/
@FeignClient(name = "message-api",value = "message-api", fallbackFactory = MessageClientFactory.class)
public interface MessageClient {

    @PostMapping("/message/addMessage")
    public R<String> addMessage( Message message);


}
